package com.example.idachuappone.person.entity;

import java.io.Serializable;
import org.json.JSONObject;

public class OrderState implements Serializable {
    private String dateline;
    private String operation;

    public OrderState parseJson(JSONObject json) {
        if (json == null) {
            return null;
        }
        if (json.has("operation")) {
            this.operation = json.optString("operation");
        }
        if (!json.has("dateline")) {
            return this;
        }
        this.dateline = json.optString("dateline");
        return this;
    }

    public String getOperation() {
        return this.operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getDateline() {
        return this.dateline;
    }

    public void setDateline(String dateline) {
        this.dateline = dateline;
    }
}
